package com.team11.server.pojo.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "获取作业审核列表",description = "获取作业审核列表")
public class AddWorkList {
    @ApiModelProperty(value = "发布时间")
    @TableField("h_setime")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime hSetime;

    @ApiModelProperty(value = "结束时间")
    @TableField("h_stoptime")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime hStoptime;

    @ApiModelProperty(value = "作业类型(1为日常作业，2为阶段性交付作业，3为最终交付作业)")
    @TableField("h_type")
    private Integer hType;

    @ApiModelProperty(value = "作业主题")
    @TableField("h_title")
    private String hTitle;

    @ApiModelProperty(value = "接受对象（小组为单位）")
    @TableField("receiver")
    private String receiver;

    @ApiModelProperty(value = "项目名称")
    @TableField("kc_name")
    private String kcName;

    @ApiModelProperty(value = "作业id")
    @TableId(value = "h_id", type = IdType.AUTO)
    private Integer hId;

    @ApiModelProperty(value = "教师姓名")
    @TableField("t_name")
    private String tName;

    @ApiModelProperty(value = "要交作业的总人数")
    @TableField(exist = false)
    private Integer num;

    @ApiModelProperty(value = "待提交人数")
    @TableField(exist = false)
    private Integer num1;

    @ApiModelProperty(value = "待批复人数")
    @TableField(exist = false)
    private Integer num2;

    @ApiModelProperty(value = "已批复人数")
    @TableField(exist = false)
    private Integer num3;
}
